<?php
/**
 * Author panxu
 * Date   2019/8/13 10:24
 */
namespace App\Utility\Pool;

use EasySwoole\Component\Pool\PoolObjectInterface;
use Swoole\Coroutine\Redis;

class RedisObject extends Redis implements PoolObjectInterface
{
    function objectRestore()
    {
        // TODO: Implement objectRestore() method.
    }

    function beforeUse(): bool
    {
        // TODO: Implement beforeUse() method.
        return true;
    }

    function gc()
    {
        // TODO: Implement gc() method.
        $this->close();
    }


}